{% extends "base_dialog.html" %}
{% block title %}
    Улучшить {% include "types" with type=id.class_name|lower %}
{% endblock %}

{% block content %}
    {% if quest %}
        <div data-role="collapsible" data-collapsed="false">
            <h1>Задача:</h1>

            <div class="quest">{{ quest.text|linebreaksbr }}</div>
        </div>
    {% endif %}
    <div data-role="collapsible" data-collapsed="true">
        <h1>Текст оригинала</h1>
        <div class="state">{{ id.text|linebreaksbr }}</div>
    </div>
    <br>
    <form action="/improve?id={{ id.key }}&quest={{ quest.key }}&rnd={{ rnd }}" method="post">
        <textarea name="text" rows="20" cols="60">{{ id.text|linebreaksbr }}</textarea>
        <div><input type="submit"
                    data-theme="b"
                    value="Добавить улучшение"
                    data-icon="check"
                    data-inline="true">
            <a href="#"
               data-rel="back"
               data-role="button"
               data-inline="true">Отмена</a></div>
    </form>
{% endblock %}